import request from '@/utils/request'

// 查询台账列表列表
export function listRealCard(query) {
  return request({
    url: '/business/ledger/realCard/list',
    method: 'get',
    params: query
  })
}

// 查询台账列表详细
export function getRealCard(id) {
  return request({
    url: '/business/ledger/realCard/' + id,
    method: 'get'
  })
}

// 新增台账列表
export function addRealCard(data) {
  return request({
    url: '/business/ledger/realCard/insert',
    method: 'post',
    data: data
  })
}

// 修改台账列表
export function updateRealCard(data) {
  return request({
    url: '/business/ledger/realCard/update',
    method: 'put',
    data: data
  })
}

// 删除台账列表
export function delRealCard(id) {
  return request({
    url: '/business/ledger/realCard/delete/' + id,
    method: 'delete'
  })
}
